<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::QRCodeDetector Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html">QRCodeDetector</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-attribs">Protected Attributes</a> |
<a href="../../d4/d64/classcv_1_1QRCodeDetector-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::QRCodeDetector Class Reference<div class="ingroups"><a class="el" href="../../d5/d54/group__objdetect.html">Object Detection</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;opencv2/objdetect.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3becfe9df48966008179e1e6c39bf8f9"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a3becfe9df48966008179e1e6c39bf8f9">QRCodeDetector</a> ()</td></tr>
<tr class="separator:a3becfe9df48966008179e1e6c39bf8f9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aea74bdc71e807a8f0ec691d56b07019d"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#aea74bdc71e807a8f0ec691d56b07019d">~QRCodeDetector</a> ()</td></tr>
<tr class="separator:aea74bdc71e807a8f0ec691d56b07019d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4172c2eb4825c844fb1b0ae67202d329"><td align="right" class="memItemLeft" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a4172c2eb4825c844fb1b0ae67202d329">decode</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> points, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> straight_qrcode=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:a4172c2eb4825c844fb1b0ae67202d329"><td class="mdescLeft"> </td><td class="mdescRight">Decodes QR code in image once it's found by the <a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b" title="Detects QR code in image and returns the quadrangle containing the code. ">detect()</a> method.  <a href="#a4172c2eb4825c844fb1b0ae67202d329">More...</a><br/></td></tr>
<tr class="separator:a4172c2eb4825c844fb1b0ae67202d329"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac7e9526c748b04186a6aa179f56096cf"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">cv::String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#ac7e9526c748b04186a6aa179f56096cf">decodeCurved</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> points, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> straight_qrcode=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:ac7e9526c748b04186a6aa179f56096cf"><td class="mdescLeft"> </td><td class="mdescRight">Decodes QR code on a curved surface in image once it's found by the <a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b" title="Detects QR code in image and returns the quadrangle containing the code. ">detect()</a> method.  <a href="#ac7e9526c748b04186a6aa179f56096cf">More...</a><br/></td></tr>
<tr class="separator:ac7e9526c748b04186a6aa179f56096cf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab468c433ba95aba10a8184611446c7a0"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#ab468c433ba95aba10a8184611446c7a0">decodeMulti</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> points, std::vector&lt; std::string &gt; &amp;decoded_info, <a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> straight_qrcode=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()) const</td></tr>
<tr class="memdesc:ab468c433ba95aba10a8184611446c7a0"><td class="mdescLeft"> </td><td class="mdescRight">Decodes QR codes in image once it's found by the <a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b" title="Detects QR code in image and returns the quadrangle containing the code. ">detect()</a> method.  <a href="#ab468c433ba95aba10a8184611446c7a0">More...</a><br/></td></tr>
<tr class="separator:ab468c433ba95aba10a8184611446c7a0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a64373f7d877d27473f64fe04bb57d22b"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b">detect</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> points) const</td></tr>
<tr class="memdesc:a64373f7d877d27473f64fe04bb57d22b"><td class="mdescLeft"> </td><td class="mdescRight">Detects QR code in image and returns the quadrangle containing the code.  <a href="#a64373f7d877d27473f64fe04bb57d22b">More...</a><br/></td></tr>
<tr class="separator:a64373f7d877d27473f64fe04bb57d22b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7290bd6a5d59b14a37979c3a14fbf394"><td align="right" class="memItemLeft" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a7290bd6a5d59b14a37979c3a14fbf394">detectAndDecode</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> points=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> straight_qrcode=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:a7290bd6a5d59b14a37979c3a14fbf394"><td class="mdescLeft"> </td><td class="mdescRight">Both detects and decodes QR code.  <a href="#a7290bd6a5d59b14a37979c3a14fbf394">More...</a><br/></td></tr>
<tr class="separator:a7290bd6a5d59b14a37979c3a14fbf394"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9166527f6e20b600ed6a53ab3dd61f51"><td align="right" class="memItemLeft" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a9166527f6e20b600ed6a53ab3dd61f51">detectAndDecodeCurved</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> points=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> straight_qrcode=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:a9166527f6e20b600ed6a53ab3dd61f51"><td class="mdescLeft"> </td><td class="mdescRight">Both detects and decodes QR code on a curved surface.  <a href="#a9166527f6e20b600ed6a53ab3dd61f51">More...</a><br/></td></tr>
<tr class="separator:a9166527f6e20b600ed6a53ab3dd61f51"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a188b63ffa17922b2c65d8a0ab7b70775"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a188b63ffa17922b2c65d8a0ab7b70775">detectAndDecodeMulti</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img, std::vector&lt; std::string &gt; &amp;decoded_info, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> points=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), <a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> straight_qrcode=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()) const</td></tr>
<tr class="memdesc:a188b63ffa17922b2c65d8a0ab7b70775"><td class="mdescLeft"> </td><td class="mdescRight">Both detects and decodes QR codes.  <a href="#a188b63ffa17922b2c65d8a0ab7b70775">More...</a><br/></td></tr>
<tr class="separator:a188b63ffa17922b2c65d8a0ab7b70775"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaf2b6b2115b8e8fbc9acf3a8f68872b6"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#aaf2b6b2115b8e8fbc9acf3a8f68872b6">detectMulti</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> points) const</td></tr>
<tr class="memdesc:aaf2b6b2115b8e8fbc9acf3a8f68872b6"><td class="mdescLeft"> </td><td class="mdescRight">Detects QR codes in image and returns the vector of the quadrangles containing the codes.  <a href="#aaf2b6b2115b8e8fbc9acf3a8f68872b6">More...</a><br/></td></tr>
<tr class="separator:aaf2b6b2115b8e8fbc9acf3a8f68872b6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1a2d277d1fd2bc466aa2a7bb0458dd51"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a1a2d277d1fd2bc466aa2a7bb0458dd51">setEpsX</a> (double epsX)</td></tr>
<tr class="memdesc:a1a2d277d1fd2bc466aa2a7bb0458dd51"><td class="mdescLeft"> </td><td class="mdescRight">sets the epsilon used during the horizontal scan of QR code stop marker detection.  <a href="#a1a2d277d1fd2bc466aa2a7bb0458dd51">More...</a><br/></td></tr>
<tr class="separator:a1a2d277d1fd2bc466aa2a7bb0458dd51"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a31a93aaed30ce03fee7ddbe16d9fd800"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a31a93aaed30ce03fee7ddbe16d9fd800">setEpsY</a> (double epsY)</td></tr>
<tr class="memdesc:a31a93aaed30ce03fee7ddbe16d9fd800"><td class="mdescLeft"> </td><td class="mdescRight">sets the epsilon used during the vertical scan of QR code stop marker detection.  <a href="#a31a93aaed30ce03fee7ddbe16d9fd800">More...</a><br/></td></tr>
<tr class="separator:a31a93aaed30ce03fee7ddbe16d9fd800"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a2c9bd91207e53bcc71ccbe8620193135"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; Impl &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a2c9bd91207e53bcc71ccbe8620193135">p</a></td></tr>
<tr class="separator:a2c9bd91207e53bcc71ccbe8620193135"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3becfe9df48966008179e1e6c39bf8f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3becfe9df48966008179e1e6c39bf8f9">◆ </a></span>QRCodeDetector()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::QRCodeDetector::QRCodeDetector </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;QRCodeDetector object&gt;</td><td>=</td><td>cv.QRCodeDetector(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="aea74bdc71e807a8f0ec691d56b07019d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea74bdc71e807a8f0ec691d56b07019d">◆ </a></span>~QRCodeDetector()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::QRCodeDetector::~QRCodeDetector </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a4172c2eb4825c844fb1b0ae67202d329"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4172c2eb4825c844fb1b0ae67202d329">◆ </a></span>decode()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cv::QRCodeDetector::decode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>straight_qrcode</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, straight_qrcode</td><td>=</td><td>cv.QRCodeDetector.decode(</td><td class="paramname">img, points[, straight_qrcode]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Decodes QR code in image once it's found by the <a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b" title="Detects QR code in image and returns the quadrangle containing the code. ">detect()</a> method. </p>
<p>Returns UTF8-encoded output string or empty string if the code cannot be decoded. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>grayscale or color (BGR) image containing QR code. </td></tr>
    <tr><td class="paramname">points</td><td>Quadrangle vertices found by <a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b" title="Detects QR code in image and returns the quadrangle containing the code. ">detect()</a> method (or some other algorithm). </td></tr>
    <tr><td class="paramname">straight_qrcode</td><td>The optional output image containing rectified and binarized QR code </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ac7e9526c748b04186a6aa179f56096cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7e9526c748b04186a6aa179f56096cf">◆ </a></span>decodeCurved()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">cv::String</a> cv::QRCodeDetector::decodeCurved </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>straight_qrcode</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, straight_qrcode</td><td>=</td><td>cv.QRCodeDetector.decodeCurved(</td><td class="paramname">img, points[, straight_qrcode]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Decodes QR code on a curved surface in image once it's found by the <a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b" title="Detects QR code in image and returns the quadrangle containing the code. ">detect()</a> method. </p>
<p>Returns UTF8-encoded output string or empty string if the code cannot be decoded. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>grayscale or color (BGR) image containing QR code. </td></tr>
    <tr><td class="paramname">points</td><td>Quadrangle vertices found by <a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b" title="Detects QR code in image and returns the quadrangle containing the code. ">detect()</a> method (or some other algorithm). </td></tr>
    <tr><td class="paramname">straight_qrcode</td><td>The optional output image containing rectified and binarized QR code </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ab468c433ba95aba10a8184611446c7a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab468c433ba95aba10a8184611446c7a0">◆ </a></span>decodeMulti()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::QRCodeDetector::decodeMulti </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::string &gt; &amp; </td>
          <td class="paramname"><em>decoded_info</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> </td>
          <td class="paramname"><em>straight_qrcode</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, decoded_info, straight_qrcode</td><td>=</td><td>cv.QRCodeDetector.decodeMulti(</td><td class="paramname">img, points[, straight_qrcode]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Decodes QR codes in image once it's found by the <a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b" title="Detects QR code in image and returns the quadrangle containing the code. ">detect()</a> method. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>grayscale or color (BGR) image containing QR codes. </td></tr>
    <tr><td class="paramname">decoded_info</td><td>UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded. </td></tr>
    <tr><td class="paramname">points</td><td>vector of Quadrangle vertices found by <a class="el" href="../../de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b" title="Detects QR code in image and returns the quadrangle containing the code. ">detect()</a> method (or some other algorithm). </td></tr>
    <tr><td class="paramname">straight_qrcode</td><td>The optional output vector of images containing rectified and binarized QR codes </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a64373f7d877d27473f64fe04bb57d22b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64373f7d877d27473f64fe04bb57d22b">◆ </a></span>detect()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::QRCodeDetector::detect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>points</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, points</td><td>=</td><td>cv.QRCodeDetector.detect(</td><td class="paramname">img[, points]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Detects QR code in image and returns the quadrangle containing the code. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>grayscale or color (BGR) image containing (or not) QR code. </td></tr>
    <tr><td class="paramname">points</td><td>Output vector of vertices of the minimum-area quadrangle containing the code. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a7290bd6a5d59b14a37979c3a14fbf394"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7290bd6a5d59b14a37979c3a14fbf394">◆ </a></span>detectAndDecode()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cv::QRCodeDetector::detectAndDecode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>points</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>straight_qrcode</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, points, straight_qrcode</td><td>=</td><td>cv.QRCodeDetector.detectAndDecode(</td><td class="paramname">img[, points[, straight_qrcode]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Both detects and decodes QR code. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>grayscale or color (BGR) image containing QR code. </td></tr>
    <tr><td class="paramname">points</td><td>optional output array of vertices of the found QR code quadrangle. Will be empty if not found. </td></tr>
    <tr><td class="paramname">straight_qrcode</td><td>The optional output image containing rectified and binarized QR code </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a9166527f6e20b600ed6a53ab3dd61f51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9166527f6e20b600ed6a53ab3dd61f51">◆ </a></span>detectAndDecodeCurved()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cv::QRCodeDetector::detectAndDecodeCurved </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>points</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>straight_qrcode</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, points, straight_qrcode</td><td>=</td><td>cv.QRCodeDetector.detectAndDecodeCurved(</td><td class="paramname">img[, points[, straight_qrcode]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Both detects and decodes QR code on a curved surface. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>grayscale or color (BGR) image containing QR code. </td></tr>
    <tr><td class="paramname">points</td><td>optional output array of vertices of the found QR code quadrangle. Will be empty if not found. </td></tr>
    <tr><td class="paramname">straight_qrcode</td><td>The optional output image containing rectified and binarized QR code </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a188b63ffa17922b2c65d8a0ab7b70775"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a188b63ffa17922b2c65d8a0ab7b70775">◆ </a></span>detectAndDecodeMulti()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::QRCodeDetector::detectAndDecodeMulti </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::string &gt; &amp; </td>
          <td class="paramname"><em>decoded_info</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>points</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> </td>
          <td class="paramname"><em>straight_qrcode</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, decoded_info, points, straight_qrcode</td><td>=</td><td>cv.QRCodeDetector.detectAndDecodeMulti(</td><td class="paramname">img[, points[, straight_qrcode]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Both detects and decodes QR codes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>grayscale or color (BGR) image containing QR codes. </td></tr>
    <tr><td class="paramname">decoded_info</td><td>UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded. </td></tr>
    <tr><td class="paramname">points</td><td>optional output vector of vertices of the found QR code quadrangles. Will be empty if not found. </td></tr>
    <tr><td class="paramname">straight_qrcode</td><td>The optional output vector of images containing rectified and binarized QR codes </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="aaf2b6b2115b8e8fbc9acf3a8f68872b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf2b6b2115b8e8fbc9acf3a8f68872b6">◆ </a></span>detectMulti()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::QRCodeDetector::detectMulti </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>points</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, points</td><td>=</td><td>cv.QRCodeDetector.detectMulti(</td><td class="paramname">img[, points]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Detects QR codes in image and returns the vector of the quadrangles containing the codes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>grayscale or color (BGR) image containing (or not) QR codes. </td></tr>
    <tr><td class="paramname">points</td><td>Output vector of vector of vertices of the minimum-area quadrangle containing the codes. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a1a2d277d1fd2bc466aa2a7bb0458dd51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a2d277d1fd2bc466aa2a7bb0458dd51">◆ </a></span>setEpsX()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::QRCodeDetector::setEpsX </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>epsX</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.QRCodeDetector.setEpsX(</td><td class="paramname">epsX</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>sets the epsilon used during the horizontal scan of QR code stop marker detection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">epsX</td><td>Epsilon neighborhood, which allows you to determine the horizontal pattern of the scheme 1:1:3:1:1 according to QR code standard. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a31a93aaed30ce03fee7ddbe16d9fd800"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31a93aaed30ce03fee7ddbe16d9fd800">◆ </a></span>setEpsY()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::QRCodeDetector::setEpsY </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>epsY</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.QRCodeDetector.setEpsY(</td><td class="paramname">epsY</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>sets the epsilon used during the vertical scan of QR code stop marker detection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">epsY</td><td>Epsilon neighborhood, which allows you to determine the vertical pattern of the scheme 1:1:3:1:1 according to QR code standard. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a2c9bd91207e53bcc71ccbe8620193135"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c9bd91207e53bcc71ccbe8620193135">◆ </a></span>p</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;Impl&gt; cv::QRCodeDetector::p</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/<a class="el" href="../../d8/da3/objdetect_8hpp.html">objdetect.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:43 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
